package com.panghu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panghu.entity.JudgeQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 判断题题库表 服务类
 * </p>
 *
 * @author huahua
 * @since 2022-03-19
 */
public interface JudgeQuestionService extends IService<JudgeQuestion> {
    JudgeQuestion findOnlyQuestionId();

    List<JudgeQuestion> findByIdAndType(Integer paperId);


    IPage<JudgeQuestion> findAll(Page page);

    List<Integer> findBySubject(String subject,Integer pageNo);

    int add(JudgeQuestion judgeQuestion);
}
